/**
 * diystyle 搜索组件样式
 * placeholder 文本框中提示信息
 * mainKey 搜索关键词
 * goUrl 跳转连接
 */
const state = {
  searchObj: {
    searchStyle: "",
    searchText: "", // 搜索提示
    background: "rgba(255, 120, 0, 1)",
    link: "",
    linkName: ""
  }
}

const mutations = {
  SET_searchObj: (state, searchObj) => {
    state.searchObj = searchObj
  }
}

export default {
  namespaced: true,
  state,
  mutations
}

